Date Created : 07/27/2017
Version : 1.0.0
Owner : Osanda Deshan
Description : This is an executable specification file which follows markdown syntax. Every heading in this file denotes a scenario. Every bulleted point denotes a step.
Create a Bucket in the bucket page using valid token
00:00:01Execution Time : 00:00:00
-
Given that a user needs to invoke "Create Bucket"
Execution Time : 00:00:01
-
When the user invokes the API using the following request <file:/resources/api_requests/create_bucket/create_bucket_using_valid_parameters.txt>and access token <file:/resources/access_tokens/valid_token.txt>
/resources/api_requests/create_bucket/create_bucket_using_valid_parameters.txt
×/resources/access_tokens/valid_token.txt
×
Execution Time : 00:00:00
-
Then the status code for the request is "201"
java.lang.AssertionError: The expected status code for the request is not match with the actual status code
expected [201] but found [500]org.testng.Assert.fail(Assert.java:94)
org.testng.Assert.failNotEquals(Assert.java:494)
org.testng.Assert.assertEquals(Assert.java:123)
org.testng.Assert.assertEquals(Assert.java:176)
BaseClass.verifyResponseStatusCode(BaseClass.java:384)
CommonStepDefinitions.verifyResponseStatusCode(CommonStepDefinitions.java:135)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
com.thoughtworks.gauge.execution.MethodExecutor.execute(MethodExecutor.java:38)
com.thoughtworks.gauge.execution.StepExecutionStage.executeStepMethod(StepExecutionStage.java:74)
com.thoughtworks.gauge.execution.StepExecutionStage.executeStep(StepExecutionStage.java:67)
com.thoughtworks.gauge.execution.StepExecutionStage.execute(StepExecutionStage.java:49)
com.thoughtworks.gauge.execution.AbstractExecutionStage.executeNext(AbstractExecutionStage.java:24)
com.thoughtworks.gauge.execution.HookExecutionStage.execute(HookExecutionStage.java:43)
com.thoughtworks.gauge.execution.ExecutionPipeline.start(ExecutionPipeline.java:29)
com.thoughtworks.gauge.processor.ExecuteStepProcessor.process(ExecuteStepProcessor.java:39)
com.thoughtworks.gauge.connection.MessageDispatcher.dispatchMessages(MessageDispatcher.java:89)
com.thoughtworks.gauge.GaugeRuntime.dispatchMessages(GaugeRuntime.java:104)
com.thoughtworks.gauge.GaugeRuntime.access$100(GaugeRuntime.java:36)
com.thoughtworks.gauge.GaugeRuntime$2.run(GaugeRuntime.java:85)
java.lang.Thread.run(Thread.java:745)
Execution Time : 00:00:00
-
And the JSON Path Assertions for the response should be equal to the following
JSON Path Expected Result $.title Test $.description Test description $.goalDate 2017-08-26T00:00:00
Create a Bucket in the bucket page using invalid token
00:00:01Execution Time : 00:00:00
-
Given that a user needs to invoke "Create Bucket"
Execution Time : 00:00:00
-
When the user invokes the API using the following request <file:/resources/api_requests/create_bucket/create_bucket_using_valid_parameters.txt>and access token <file:/resources/access_tokens/invalid_token.txt>
/resources/api_requests/create_bucket/create_bucket_using_valid_parameters.txt
×/resources/access_tokens/invalid_token.txt
×
Execution Time : 00:00:00
-
Then the status code for the request is "401"
java.lang.AssertionError: The expected status code for the request is not match with the actual status code
expected [401] but found [500]org.testng.Assert.fail(Assert.java:94)
org.testng.Assert.failNotEquals(Assert.java:494)
org.testng.Assert.assertEquals(Assert.java:123)
org.testng.Assert.assertEquals(Assert.java:176)
BaseClass.verifyResponseStatusCode(BaseClass.java:384)
CommonStepDefinitions.verifyResponseStatusCode(CommonStepDefinitions.java:135)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
com.thoughtworks.gauge.execution.MethodExecutor.execute(MethodExecutor.java:38)
com.thoughtworks.gauge.execution.StepExecutionStage.executeStepMethod(StepExecutionStage.java:74)
com.thoughtworks.gauge.execution.StepExecutionStage.executeStep(StepExecutionStage.java:67)
com.thoughtworks.gauge.execution.StepExecutionStage.execute(StepExecutionStage.java:49)
com.thoughtworks.gauge.execution.AbstractExecutionStage.executeNext(AbstractExecutionStage.java:24)
com.thoughtworks.gauge.execution.HookExecutionStage.execute(HookExecutionStage.java:43)
com.thoughtworks.gauge.execution.ExecutionPipeline.start(ExecutionPipeline.java:29)
com.thoughtworks.gauge.processor.ExecuteStepProcessor.process(ExecuteStepProcessor.java:39)
com.thoughtworks.gauge.connection.MessageDispatcher.dispatchMessages(MessageDispatcher.java:89)
com.thoughtworks.gauge.GaugeRuntime.dispatchMessages(GaugeRuntime.java:104)
com.thoughtworks.gauge.GaugeRuntime.access$100(GaugeRuntime.java:36)
com.thoughtworks.gauge.GaugeRuntime$2.run(GaugeRuntime.java:85)
java.lang.Thread.run(Thread.java:745)
Create a Bucket in the bucket page using no token
00:00:00Execution Time : 00:00:00
-
Given that a user needs to invoke "Create Bucket"
Execution Time : 00:00:00
-
When the user invokes the API using the following request <file:/resources/api_requests/create_bucket/create_bucket_using_valid_parameters.txt>and access token <file:/resources/access_tokens/null_token.txt>
/resources/api_requests/create_bucket/create_bucket_using_valid_parameters.txt
×/resources/access_tokens/null_token.txt
×
Execution Time : 00:00:00
-
Then the status code for the request is "401"
java.lang.AssertionError: The expected status code for the request is not match with the actual status code
expected [401] but found [404]org.testng.Assert.fail(Assert.java:94)
org.testng.Assert.failNotEquals(Assert.java:494)
org.testng.Assert.assertEquals(Assert.java:123)
org.testng.Assert.assertEquals(Assert.java:176)
BaseClass.verifyResponseStatusCode(BaseClass.java:384)
CommonStepDefinitions.verifyResponseStatusCode(CommonStepDefinitions.java:135)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
com.thoughtworks.gauge.execution.MethodExecutor.execute(MethodExecutor.java:38)
com.thoughtworks.gauge.execution.StepExecutionStage.executeStepMethod(StepExecutionStage.java:74)
com.thoughtworks.gauge.execution.StepExecutionStage.executeStep(StepExecutionStage.java:67)
com.thoughtworks.gauge.execution.StepExecutionStage.execute(StepExecutionStage.java:49)
com.thoughtworks.gauge.execution.AbstractExecutionStage.executeNext(AbstractExecutionStage.java:24)
com.thoughtworks.gauge.execution.HookExecutionStage.execute(HookExecutionStage.java:43)
com.thoughtworks.gauge.execution.ExecutionPipeline.start(ExecutionPipeline.java:29)
com.thoughtworks.gauge.processor.ExecuteStepProcessor.process(ExecuteStepProcessor.java:39)
com.thoughtworks.gauge.connection.MessageDispatcher.dispatchMessages(MessageDispatcher.java:89)
com.thoughtworks.gauge.GaugeRuntime.dispatchMessages(GaugeRuntime.java:104)
com.thoughtworks.gauge.GaugeRuntime.access$100(GaugeRuntime.java:36)
com.thoughtworks.gauge.GaugeRuntime$2.run(GaugeRuntime.java:85)
java.lang.Thread.run(Thread.java:745)
Create a Bucket in the bucket page using empty value as the goal title
00:00:00Execution Time : 00:00:00
-
Given that a user needs to invoke "Create Bucket"
Execution Time : 00:00:00
-
When the user invokes the API using the following request <file:/resources/api_requests/create_bucket/create_bucket_using_empty_goal_title.txt>and access token <file:/resources/access_tokens/valid_token.txt>
/resources/api_requests/create_bucket/create_bucket_using_empty_goal_title.txt
×/resources/access_tokens/valid_token.txt
×
Execution Time : 00:00:00
-
Then the status code for the request is "400"
java.lang.AssertionError: The expected status code for the request is not match with the actual status code
expected [400] but found [500]org.testng.Assert.fail(Assert.java:94)
org.testng.Assert.failNotEquals(Assert.java:494)
org.testng.Assert.assertEquals(Assert.java:123)
org.testng.Assert.assertEquals(Assert.java:176)
BaseClass.verifyResponseStatusCode(BaseClass.java:384)
CommonStepDefinitions.verifyResponseStatusCode(CommonStepDefinitions.java:135)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
com.thoughtworks.gauge.execution.MethodExecutor.execute(MethodExecutor.java:38)
com.thoughtworks.gauge.execution.StepExecutionStage.executeStepMethod(StepExecutionStage.java:74)
com.thoughtworks.gauge.execution.StepExecutionStage.executeStep(StepExecutionStage.java:67)
com.thoughtworks.gauge.execution.StepExecutionStage.execute(StepExecutionStage.java:49)
com.thoughtworks.gauge.execution.AbstractExecutionStage.executeNext(AbstractExecutionStage.java:24)
com.thoughtworks.gauge.execution.HookExecutionStage.execute(HookExecutionStage.java:43)
com.thoughtworks.gauge.execution.ExecutionPipeline.start(ExecutionPipeline.java:29)
com.thoughtworks.gauge.processor.ExecuteStepProcessor.process(ExecuteStepProcessor.java:39)
com.thoughtworks.gauge.connection.MessageDispatcher.dispatchMessages(MessageDispatcher.java:89)
com.thoughtworks.gauge.GaugeRuntime.dispatchMessages(GaugeRuntime.java:104)
com.thoughtworks.gauge.GaugeRuntime.access$100(GaugeRuntime.java:36)
com.thoughtworks.gauge.GaugeRuntime$2.run(GaugeRuntime.java:85)
java.lang.Thread.run(Thread.java:745)
Execution Time : 00:00:00
-
And the JSON Path Assertions for the response should be equal to the following
JSON Path Expected Result $.Title[0] Title Can't be empty $.Title[1] Title should be more than 2 characters
Create a Bucket in the bucket page using null value as the goal title
00:00:00Execution Time : 00:00:00
-
Given that a user needs to invoke "Create Bucket"
Execution Time : 00:00:00
-
When the user invokes the API using the following request <file:/resources/api_requests/create_bucket/create_bucket_using_null_goal_title.txt>and access token <file:/resources/access_tokens/valid_token.txt>
/resources/api_requests/create_bucket/create_bucket_using_null_goal_title.txt
×/resources/access_tokens/valid_token.txt
×
Execution Time : 00:00:00
-
Then the status code for the request is "400"
java.lang.AssertionError: The expected status code for the request is not match with the actual status code
expected [400] but found [500]org.testng.Assert.fail(Assert.java:94)
org.testng.Assert.failNotEquals(Assert.java:494)
org.testng.Assert.assertEquals(Assert.java:123)
org.testng.Assert.assertEquals(Assert.java:176)
BaseClass.verifyResponseStatusCode(BaseClass.java:384)
CommonStepDefinitions.verifyResponseStatusCode(CommonStepDefinitions.java:135)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
com.thoughtworks.gauge.execution.MethodExecutor.execute(MethodExecutor.java:38)
com.thoughtworks.gauge.execution.StepExecutionStage.executeStepMethod(StepExecutionStage.java:74)
com.thoughtworks.gauge.execution.StepExecutionStage.executeStep(StepExecutionStage.java:67)
com.thoughtworks.gauge.execution.StepExecutionStage.execute(StepExecutionStage.java:49)
com.thoughtworks.gauge.execution.AbstractExecutionStage.executeNext(AbstractExecutionStage.java:24)
com.thoughtworks.gauge.execution.HookExecutionStage.execute(HookExecutionStage.java:43)
com.thoughtworks.gauge.execution.ExecutionPipeline.start(ExecutionPipeline.java:29)
com.thoughtworks.gauge.processor.ExecuteStepProcessor.process(ExecuteStepProcessor.java:39)
com.thoughtworks.gauge.connection.MessageDispatcher.dispatchMessages(MessageDispatcher.java:89)
com.thoughtworks.gauge.GaugeRuntime.dispatchMessages(GaugeRuntime.java:104)
com.thoughtworks.gauge.GaugeRuntime.access$100(GaugeRuntime.java:36)
com.thoughtworks.gauge.GaugeRuntime$2.run(GaugeRuntime.java:85)
java.lang.Thread.run(Thread.java:745)
Execution Time : 00:00:00
-
And the JSON Path Assertions for the response should be equal to the following
JSON Path Expected Result $.Title[0] Title Can't be null $.Title[1] Title Can't be empty
Create a Bucket in the bucket page using 1 character as the goal title
00:00:00Execution Time : 00:00:00
-
Given that a user needs to invoke "Create Bucket"
Execution Time : 00:00:00
-
When the user invokes the API using the following request <file:/resources/api_requests/create_bucket/create_bucket_using_1_character_goal_title.txt>and access token <file:/resources/access_tokens/valid_token.txt>
/resources/api_requests/create_bucket/create_bucket_using_1_character_goal_title.txt
×/resources/access_tokens/valid_token.txt
×
Execution Time : 00:00:00
-
Then the status code for the request is "400"
java.lang.AssertionError: The expected status code for the request is not match with the actual status code
expected [400] but found [500]org.testng.Assert.fail(Assert.java:94)
org.testng.Assert.failNotEquals(Assert.java:494)
org.testng.Assert.assertEquals(Assert.java:123)
org.testng.Assert.assertEquals(Assert.java:176)
BaseClass.verifyResponseStatusCode(BaseClass.java:384)
CommonStepDefinitions.verifyResponseStatusCode(CommonStepDefinitions.java:135)
sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
com.thoughtworks.gauge.execution.MethodExecutor.execute(MethodExecutor.java:38)
com.thoughtworks.gauge.execution.StepExecutionStage.executeStepMethod(StepExecutionStage.java:74)
com.thoughtworks.gauge.execution.StepExecutionStage.executeStep(StepExecutionStage.java:67)
com.thoughtworks.gauge.execution.StepExecutionStage.execute(StepExecutionStage.java:49)
com.thoughtworks.gauge.execution.AbstractExecutionStage.executeNext(AbstractExecutionStage.java:24)
com.thoughtworks.gauge.execution.HookExecutionStage.execute(HookExecutionStage.java:43)
com.thoughtworks.gauge.execution.ExecutionPipeline.start(ExecutionPipeline.java:29)
com.thoughtworks.gauge.processor.ExecuteStepProcessor.process(ExecuteStepProcessor.java:39)
com.thoughtworks.gauge.connection.MessageDispatcher.dispatchMessages(MessageDispatcher.java:89)
com.thoughtworks.gauge.GaugeRuntime.dispatchMessages(GaugeRuntime.java:104)
com.thoughtworks.gauge.GaugeRuntime.access$100(GaugeRuntime.java:36)
com.thoughtworks.gauge.GaugeRuntime$2.run(GaugeRuntime.java:85)
java.lang.Thread.run(Thread.java:745)
Execution Time : 00:00:00
-
And the JSON Path Assertions for the response should be equal to the following
JSON Path Expected Result $.Title[0] Title should be more than 2 characters
Create a Bucket in the bucket page using 2 characters as the goal title
00:00:00Execution Time : 00:00:00
-
Given that a user needs to invoke "Create Bucket"
Execution Time : 00:00:00
-
When the user invokes the API using the following request <file:/resources/api_requests/create_bucket/create_bucket_using_2_characters_goal_title.txt>and access token <file:/resources/access_tokens/valid_token.txt>
/resources/api_requests/create_bucket/create_bucket_using_2_characters_goal_title.txt
×/resources/access_tokens/valid_token.txt
×
Execution Time : 00:00:00
-
Then the status code for the request is "201"
java.lang.AssertionError: The expected status code for the request is not match with the actual status code
expected [201] but found [500]org.testng.Assert.fail(Assert.java:94)
org.testng.Assert.failNotEquals(Assert.java:494)
org.testng.Assert.assertEquals(Assert.java:123)
org.testng.Assert.assertEquals(Assert.java:176)
BaseClass.verifyResponseStatusCode(BaseClass.java:384)
CommonStepDefinitions.verifyResponseStatusCode(CommonStepDefinitions.java:135)
sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
com.thoughtworks.gauge.execution.MethodExecutor.execute(MethodExecutor.java:38)
com.thoughtworks.gauge.execution.StepExecutionStage.executeStepMethod(StepExecutionStage.java:74)
com.thoughtworks.gauge.execution.StepExecutionStage.executeStep(StepExecutionStage.java:67)
com.thoughtworks.gauge.execution.StepExecutionStage.execute(StepExecutionStage.java:49)
com.thoughtworks.gauge.execution.AbstractExecutionStage.executeNext(AbstractExecutionStage.java:24)
com.thoughtworks.gauge.execution.HookExecutionStage.execute(HookExecutionStage.java:43)
com.thoughtworks.gauge.execution.ExecutionPipeline.start(ExecutionPipeline.java:29)
com.thoughtworks.gauge.processor.ExecuteStepProcessor.process(ExecuteStepProcessor.java:39)
com.thoughtworks.gauge.connection.MessageDispatcher.dispatchMessages(MessageDispatcher.java:89)
com.thoughtworks.gauge.GaugeRuntime.dispatchMessages(GaugeRuntime.java:104)
com.thoughtworks.gauge.GaugeRuntime.access$100(GaugeRuntime.java:36)
com.thoughtworks.gauge.GaugeRuntime$2.run(GaugeRuntime.java:85)
java.lang.Thread.run(Thread.java:745)
Execution Time : 00:00:00
-
And the JSON Path Assertions for the response should be equal to the following
JSON Path Expected Result $.title Te $.description Test $.goalDate 2017-08-26T00:00:00
Create a Bucket in the bucket page using past date
00:00:01Execution Time : 00:00:00
-
Given that a user needs to invoke "Create Bucket"
Execution Time : 00:00:01
-
When the user invokes the API using the following request <file:/resources/api_requests/create_bucket/create_bucket_using_past_date.txt>and access token <file:/resources/access_tokens/valid_token.txt>
/resources/api_requests/create_bucket/create_bucket_using_past_date.txt
×/resources/access_tokens/valid_token.txt
×
Execution Time : 00:00:00
-
Then the status code for the request is "400"
java.lang.AssertionError: The expected status code for the request is not match with the actual status code
expected [400] but found [500]org.testng.Assert.fail(Assert.java:94)
org.testng.Assert.failNotEquals(Assert.java:494)
org.testng.Assert.assertEquals(Assert.java:123)
org.testng.Assert.assertEquals(Assert.java:176)
BaseClass.verifyResponseStatusCode(BaseClass.java:384)
CommonStepDefinitions.verifyResponseStatusCode(CommonStepDefinitions.java:135)
sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
com.thoughtworks.gauge.execution.MethodExecutor.execute(MethodExecutor.java:38)
com.thoughtworks.gauge.execution.StepExecutionStage.executeStepMethod(StepExecutionStage.java:74)
com.thoughtworks.gauge.execution.StepExecutionStage.executeStep(StepExecutionStage.java:67)
com.thoughtworks.gauge.execution.StepExecutionStage.execute(StepExecutionStage.java:49)
com.thoughtworks.gauge.execution.AbstractExecutionStage.executeNext(AbstractExecutionStage.java:24)
com.thoughtworks.gauge.execution.HookExecutionStage.execute(HookExecutionStage.java:43)
com.thoughtworks.gauge.execution.ExecutionPipeline.start(ExecutionPipeline.java:29)
com.thoughtworks.gauge.processor.ExecuteStepProcessor.process(ExecuteStepProcessor.java:39)
com.thoughtworks.gauge.connection.MessageDispatcher.dispatchMessages(MessageDispatcher.java:89)
com.thoughtworks.gauge.GaugeRuntime.dispatchMessages(GaugeRuntime.java:104)
com.thoughtworks.gauge.GaugeRuntime.access$100(GaugeRuntime.java:36)
com.thoughtworks.gauge.GaugeRuntime$2.run(GaugeRuntime.java:85)
java.lang.Thread.run(Thread.java:745)
Execution Time : 00:00:00
-
And the JSON Path Assertions for the response should be equal to the following
JSON Path Expected Result $.GoalDate[0] Goal date should be a future date
